import { getAction, postAction } from '@/api/manage'

// 黑名单列表
const list = (params) => getAction('/admin/blacklist/page', params)
// 删除黑名单
const del = (params) => postAction(`/admin/blacklist/delete/${params}`)
// 批量删除黑名单
const batchDel = (params) => postAction(`/admin/blacklist/batchDel`, params)
// 新增黑名单
const create = (params) => postAction('/admin/blacklist/create', params)
// 编辑黑名单
const edit = (params) => postAction('/admin/blacklist/update', params)
// 导出黑名单
const exports = (params) => postAction('/admin/blacklist/export', params, 'blob')

export {
  list,
  del,
  batchDel,
  create,
  edit,
  exports
}
